'QuerySet' object has no attribute 'id'